package com.utils.exceptions;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 服务器异常
 * @author geliyang
 *
 */
@SuppressWarnings("serial")
public class ServiceException extends RuntimeException{
	
	private Logger logger = LoggerFactory.getLogger(this.getClass());  
	
	public ServiceException() {
		logger.error("<服务器异常>");
	}
	
	public ServiceException(String msg){
        super(msg);
        logger.error("<服务器异常>:" + msg);
    }
}
